<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddHangyeToScenicDivinationsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('scenic_divinations', function (Blueprint $table) {
            $table->string('hangye')->nullable()->comment('生财行业');
            $table->string('category')->nullable()->comment('财运类型');
            $table->string('cqgy')->nullable()->comment('财气感应');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('scenic_divinations', function (Blueprint $table) {
             $table->dropColumn(['hangye','category','cqgy']);
        });
    }
}
